package com.neusoft.cmsprojects.service;


import java.util.Collection;
import java.util.List;

import com.neusoft.cmsprojects.model.Privilege;

public interface PrivilegeService  {


	/**
	 * 查询所有顶级权限
	 * @return
	 */
	public List<Privilege> findTopPrivilege();
	
	/**
	 *  查询所有权限对应不重复的URL集合
	 * @return 所有的URL地址集合
	 */
	public Collection<String> getAllPrivilegeUrls();

	public List<Privilege> getByIds(Integer[] privilegeIds);

	public List<Privilege> findPrivilegeById(Integer id);

	public void save(Privilege privilege);

	public Privilege getById(Integer parentId);

	public List<Object> findAll();

	public void delete(Privilege privilege);

	public List<Privilege> findChildren(Integer id);

	public void merge(Privilege privilege);

}
